<load target="js/faq_admin.js" />
<include target="header.html" />

<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
	<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>

<form action="./" method="post" ruleset="insertFaq" enctype="multipart/form-data" id="fo_insert_faq">
<input type="hidden" name="act" value="procFaqAdminInsertFaq" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
	<div class="table">
	    <table cellspacing="0" class="rowTable">
	
	    <input cond="$logged_info->is_admin!='Y'" type="hidden" name="faq_name" value="{$module_info->mid}" />

	    <tr cond="$logged_info->is_admin=='Y'">
	        <th scope="row"><div>{$lang->mid}</div></th>
	        <td>
	            <input type="text" name="faq_name" value="{$module_info->mid}" class="inputTypeText w200" />
	            <p>{$lang->about_mid}</p>
	        </td>
	    </tr>

	    <tr>
	        <th scope="row"><div>{$lang->module_category}</div></th>
	        <td>
	            <select name="module_category_srl">
	                <option value="0">{$lang->notuse}</option>
	                <option loop="$module_category => $key,$val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl==$key">{$val->title}</option>
	            </select>
	            <p>{$lang->about_module_category}</p>
	        </td>
	    </tr>
	
	    <tr>
	        <th scope="row"><div>{$lang->browser_title}</div></th>
	        <td>
	            <input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}"  class="inputTypeText w400" id="browser_title"/>
	            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting" title="{$lang->cmd_find_langcode}"><span>{$lang->cmd_find_langcode}</span></a>
	            <p>{$lang->about_browser_title}</p>
	        </td>
	    </tr>
	
	    <tr>
	        <th scope="row"><div>{$lang->layout}</div></th>
	        <td>
	            <select name="layout_srl">
	            <option value="0">{$lang->notuse}</option>
	            <option loop="$layout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl==$val->layout_srl">{$val->title} ({$val->layout})</option>
	            </select>
	            <p>{$lang->about_layout}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->skin}</div></th>
	        <td>
	            <select name="skin">
	                <option loop="$skin_list => $key,$val" value="{$key}" selected="selected"|cond="$module_info->skin==$key">{$val->title}</option>
	            </select>
	            <p>{$lang->about_skin}</p>
	        </td>
	    </tr>
		<tr>
			<th scope="row"><div>{$lang->mobile_view}</div></th>
			<td>
			<input type="checkbox" name="use_mobile" id="use_mobile" value="Y" checked="checked"|cond="$module_info->use_mobile == 'Y'" /> 
			<p>{$lang->about_mobile_view}</p>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->mobile_layout}</div></th>
			<td>
				<select name="mlayout_srl" id="layout_srl">
					<option value="0">{$lang->notuse}</option>
					<option loop="$mlayout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->mlayout_srl== $val->layout_srl">{$val->title} ({$val->layout})</option>
				</select>
			</td>
			<p class="desc">{$lang->about_layout}</p>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->mobile_skin}</div></th>
			<td>
				<select name="mskin" id="mskin">
					<option loop="$mskin_list=> $key, $val" value="{$key}" selected="selected"|cond="$module_info->mskin== $key || (!$module_info->skin && $key=='xe_faq')">{$val->title}</option>
				</select>
			</td>
			<p class="desc">{$lang->about_skin}</p>
		</tr>
	    <tr>
	        <th scope="row"><div>{$lang->order_target}</div></th>
	        <td>
	            <select name="order_target">
	                <option loop="$order_target => $key,$val" value="{$key}" selected="selected"|cond="$module_info->order_target == $key">{$val}</option>
	            </select>
	
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->order_type}</div></th>
	        <td>
	            <select name="order_type">
	                <option value="asc" <!--@if($module_info->order_type != 'desc')-->selected="selected"<!--@end-->>{$lang->order_asc}</option>
	                <option value="desc" <!--@if($module_info->order_type == 'desc')-->selected="selected"<!--@end-->>{$lang->order_desc}</option>
	            </select>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->list_count}</div></th>
	        <td>
	            <input type="text" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}"  class="inputTypeText" />
	            <p>{$lang->about_list_count}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->search_list_count}</div></th>
	        <td>
	            <input type="text" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}"  class="inputTypeText" />
	            <p>{$lang->about_search_list_count}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->page_count}</div></th>
	        <td>
	            <input type="text" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}"  class="inputTypeText" />
	            <p>{$lang->about_page_count}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->use_category}</div></th>
	        <td>
	            <input type="checkbox" name="use_category" value="Y" <!--@if($module_info->use_category=='Y')-->checked="checked"<!--@end-->  class="checkbox" id="fld_for_category" />
	            <p>{nl2br($lang->about_use_category)}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->allow_keywords}</div></th>
	        <td>
	            <input type="checkbox" name="allow_keywords" value="Y" <!--@if($module_info->allow_keywords!='N')-->checked="checked"<!--@end--> />
	            <p>{nl2br($lang->about_allow_keywords)}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->faq_keywords}</div></th>
	        <td>
	            <input type="text" name="faq_keywords" value="{$module_info->faq_keywords?$module_info->faq_keywords:''}"  class="inputTypeText w400" />
	            <p>{nl2br($lang->about_faq_keywords)}</p>
	        </td>
	    </tr>
	    <tr>
	        <th scope="row"><div>{$lang->description}</div></th>
	        <td>
	            <textarea name="description" class="inputTypeTextArea fullWidth" style="width:60%;height:100px">{htmlspecialchars($module_info->description)}</textarea>
	            <p>{$lang->about_description}</p>
	        </td>
	    </tr>
	    </table>
	</div>
	<div class="btnArea">
		<span class="btn"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
		<span class="btn"><a href="{getUrl('act','dispFaqAdminContent','module_srl','')}">{$lang->cmd_back}</a></span>
	</div>
</form>
